import { createAPI, createFormAPI } from '@/utils/request'

export const insertSowBirthingRecords = data => createFormAPI('/admin/sowBirthingRecords', 'post', data)
export const deleteSowBirthingRecords = data => createAPI(`/admin/sowBirthingRecords/${data.id}`, 'delete', data)
export const updateSowBirthingRecords = data => createAPI('/admin/sowBirthingRecords', 'put', data)
export const selectSowBirthingRecords = data => createAPI('/admin/sowBirthingRecords', 'get', data)
export const sowBirthingRecordsNum=data =>createAPI('/admin/sowBirthingRecordsNum',"get",data)
